package com.sz.app.edi.service.order.impl;

import com.sz.app.edi.base.entity.DataConversion;
import com.sz.app.edi.service.order.DataConversionService;
import com.sz.common.base.service.AbstractService;
import com.sz.common.base.utils.StringUtils;
import org.springframework.stereotype.Service;

/**
 * Function: TODO: ADD FUNCTION <br>
 * Author: yanhong.xiao.<br>
 * Date: 2017-07-07 10:02:00.
 */
@Service
public class DataConversionServiceImpl extends AbstractService implements DataConversionService {
    @Override
    public DataConversion findByCode(String funCode) {
        DataConversion dataConversion = null;
        if (!StringUtils.isEmpty(funCode)) {
            dataConversion = (DataConversion) dao.findForObject(getSqlName("findByCode"), funCode);
        }
        return dataConversion;
    }
}
